//
//  HWyaoqijiluTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2021/2/8.
//  Copyright © 2021 Chendaobin. All rights reserved.
//

#import "HWyaoqijiluTableViewCell.h"
@interface HWyaoqijiluTableViewCell ()

@end
@implementation HWyaoqijiluTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.beijingView.layer.cornerRadius  = 10 ;
    self.beijingView.layer.masksToBounds = YES;
    
    self.button = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button.layer.masksToBounds = YES;
    self.button.hidden = YES;
    self.button.backgroundColor = UIColor.lightGrayColor;
    self.button.layer.cornerRadius = 15;
    self.button.titleLabel.font = [UIFont boldSystemFontOfSize:13];
    [self.button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.beijingView addSubview:self.button];
    [self.button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(0);
        make.right.mas_equalTo(-18);
        make.width.mas_equalTo(60);
        make.height.mas_equalTo(30);
    }];
    
    
}

- (void)buttonClick:(UIButton *)button {
    self.clickButton(self.userId);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
